<div id="tabs_center" class="easyui-tabs" fit="true" border='false'>
    <div title="欢迎页面" href="./welcome.html">
        首页
    </div>
</div>
<script>
    var _center_tabs = $('#tabs_center');
    NProgress.configure({
        parent: '#tabs_center',
        showSpinner: false
    });
    $.subscribe(MSG.LEFT_MENU_EVENT, function(_json) {
        var obj = JSON.parse(_json);
        if (_center_tabs.tabs('exists', obj.text)) {
            _center_tabs.tabs('select', obj.text);
            return;
        }
        NProgress.start();

        /*如果载入模块不存在的话，显示still_in_dev.html*/
        $.ajax('tpl' + obj.uri + '.html', {
            success: function(data) {
                _center_tabs.tabs('add', {
                    title: obj.text,
                    content: data,
                    closable: true,
                });
                NProgress.done();
            },
            error: function() {
                _center_tabs.tabs('add', {
                    title: obj.text,
                    href: './still_in_dev.html',
                    closable: true,
                });
                NProgress.done();
            }
        });
    });
</script>